#ifndef _STRING_MANIP_H_
#define _STRING_MANIP_H_

/**
 *	get the file name from the whole string including path
 *	@param	fullpathname[in]		the name of file together with the path, such as "/target.xxx" or "/xxx/target.xxx"
 *	return	the file name in the fullpathname
 */
void* GetFilename(const char* fullpathname);

/**
 *	get a line from the whole string and remove this line from the src_string
 *	@param	src_string[in,out]		the source string, if function succeeds, the line will be removed from this source string
 *	@return the string before the first '\n' in source string
 */
void* GetSentence(char** src_string);


/**
 *	get a word from the whole string and remove this word from the src_string
 *	@param	src_string[in,out]		the source string, if function succeeds, the word will be removed from this source string
 *	@return the word before the first ' '(space char) in source string
 */
void* GetWord(char** src_string);

#endif //_STRING_MANIP_H_